package sale.wxb.loveshopping.entity.vo.commodity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@ApiModel(description = "保存分类参数")
public class SaveCommodityClassifyVo {
    public Long id;
    @NotBlank
    @ApiModelProperty(value = "分类名称", required = true)
    private String name;
    @ApiModelProperty("上级分类ID 不传默认为一级分类 默认 0")
    private Long parentId;
    @ApiModelProperty("排序值 越小越靠前 默认 0")
    private Integer sort;
    @ApiModelProperty("是否启用 默认true")
    private Boolean enabled;
    @ApiModelProperty("分类缩略图")
    private String thumb;
}
